package com.seng.deptservice.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.seng.deptservice.entity.TbDepartment;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author seng
 * @since 2020-07-26
 */
public interface TbDepartmentService extends IService<TbDepartment> {
    List<TbDepartment> findDeptAndCount();

    IPage<TbDepartment> findStudentPage(Page<TbDepartment> page, @Param(Constants.WRAPPER) QueryWrapper<TbDepartment> wrapper);

    List<TbDepartment> findUsername();

    /**
     * 导出数据
     * @param response
     * @throws IOException
     */
    void exportStudentInfoExcel(HttpServletResponse response) throws IOException;
}
